<?php $this->extend('template');?>

<?php $this->start('titre_page'); ?>
	<?php echo __('Encyclopedia Country'); ?>
<?php $this->end(); ?>

<?php $this->start('titre'); ?>
	<h1><?php echo __('Encyclopedia Country'); ?></h1>
<?php $this->end(); ?>

<div class="countries view">
	<h2>
		<?php echo h($country['Country']['name']); ?>
		&nbsp;
	</h2>

		<?php echo __('Number visits').': '; ?>
			<?php echo h($country['Country']['nb_visits']); ?>
			&nbsp;
	</dl>
</div>


<div class="related">
	<h3><?php echo __('Related Regions'); ?></h3>
	<?php if (!empty($country['Region'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Country Id'); ?></th>
		<th><?php echo __('Website'); ?></th>
		<th><?php echo __('Center Latitude'); ?></th>
		<th><?php echo __('Center Longitude'); ?></th>
		<th><?php echo __('Nb Visits'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($country['Region'] as $region): ?>
		<tr>
			<td><?php echo $region['name']; ?></td>
			<td><?php echo $region['country_id']; ?></td>
			<td><?php echo $region['website']; ?></td>
			<td><?php echo $region['center_latitude']; ?></td>
			<td><?php echo $region['center_longitude']; ?></td>
			<td><?php echo $region['nb_visits']; ?></td>
			<td><?php echo $region['created']; ?></td>
			<td><?php echo $region['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'regions', 'action' => 'view', $region['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'regions', 'action' => 'edit', $region['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'regions', 'action' => 'delete', $region['id']), null, __('Are you sure you want to delete # %s?', $region['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

